<?php
namespace app\admin\controller;
use think\Controller;
use think\Session;
class Index extends Controller
{
    public function index()
    {
        $name=Session::get("name");
       if(!empty($name)){
           $this->assign("name",$name);
           return $this->fetch();
       }
          else{
              return $this->fetch("login/login");
          }
           
    }
}
